package com.twt.Dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper //标记mapper文件位置，否则在Application.class启动类上配置mapper包扫描
@Repository
public interface ThrowLakeDao {
    //直接插入lake表
    void throwLake(@Param("nickname") String nickname,
                   @Param("username") String username,
                   @Param("context") String context,
                   @Param("time")String time);

    //用户名找昵称
    String findNicknameByUsername(@Param("username") String username);
}
